//
//  UIPullingheaderTableView.h
//  collection
//
//  Created by xinggang li on 1/16/12.
//  Copyright (c) 2012 tencent. All rights reserved.
//


#import <UIKit/UIKit.h>
#import "EGORefreshTableHeaderView.h"


@protocol UIPullingheaderDelegate;


@interface UIPullingheaderTableView : UITableView <UITableViewDelegate,EGORefreshTableHeaderDelegate>
{
@private    
    id<UITableViewDelegate,UIPullingheaderDelegate> _secondDelegate;
    
    EGORefreshTableHeaderView *_refreshView;
}


//@property (nonatomic,assign) id<UITableViewDelegate,UIPullingheaderDelegate> secondDelegate;
@property (nonatomic,copy)   NSString *timeStamp;
@property (nonatomic,assign) BOOL forbidLoading;

-(void)setTimeStampToDate:(NSDate *)dateValue;

-(void)finishedRefreshLoading:(NSTimeInterval) delay;

-(void)refreshLastUpdatedDate;

-(void)enforceRefreshLoading;

// 判断是否是拉下的状态
-(BOOL)isUpdatingData;

@end




@protocol UIPullingheaderDelegate <NSObject>

-(void)onInvokePullingRefresh:(UIPullingheaderTableView *)view;

@end